<%--
  Created by IntelliJ IDEA.
  User: TianyuChen
  Date: 2020/3/5
  Time: 21:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
  <head>
    <title>user</title>
  </head>
  <body>
    <table border="1">
      <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>密码</th>
        <th>性别</th>
        <th>年龄</th>
        <th>生日</th>
      </tr>

      <c:forEach items="${userList}" var="u">
        <tr>
          <td>${u.uid}</td>
          <td>${u.uname}</td>
          <td>${u.pwd}</td>
          <td>${u.sex==1?'男':'女'}</td>
          <td>${u.age}</td>
          <td>${u.birth}</td>
        </tr>
      </c:forEach>
    </table>
  </body>
</html>
